package weixinkeji.dev.dc.base.scheme.promotions.h;

import weixinkeji.dev.dc.base.scheme.promotions.bean.PromotionDay;
import sys.wx.ann.hm.H;
import sys.wx.ann.hm.M;
import sys.wx.c.ATR;
import sys.wx.c.components.check.bean.CheckData;
import sys.wx.c.components.cv.CV;
import sys.wx.m.db.dao.mysql.Dao;

@H("weixinkeji/dev/dc/base/scheme/promotions/d")
public class PromotionDayHD {

    ATR a;

    public PromotionDayHD(ATR a) {
        this.a = a;
    }

    @M("/dell")//通过 weixinkeji/dev/dc/base/scheme/promotions/d/dell.imy 访问
    public String dell() {
//        PromotionDay u = CV.getObject_Add(PromotionDay.class, a.request, new PromotionDayCheck().doPromotionDay(false));
        String id = CV.getParameter(a.request, "ids", CheckData.IDS);
        if (null == id) {
            a.out_OK_NO(false, "非法ID");
            return null;
        }
        a.out_OK_NO(Dao.dell_vast(PromotionDay.class, id));
        return null;
    }

}
